<?php
/**
 * Created by PhpStorm.
 * User: ari
 * Date: 11/19/14
 * Time: 8:09 PM
 */
namespace BC\User\Session;

use BC\PGP\Commands\PGPImportPublicKeyCommand;
use BC\User\UserConfig;
use CPath\Request\IRequest;

class CreateSession extends PGPImportPublicKeyCommand
{
	function __construct($armoredPublicKey) {
		parent::__construct($armoredPublicKey);
		if(UserConfig::$UserSessionKeyRingPath)
			$this->setPrimaryKeyRing(UserConfig::$UserSessionKeyRingPath);
	}


	/**
	 * Execute a command and return a response. Does not render
	 * @param IRequest $Request
	 * @param null $armoredPublicKey
	 * @return CreateSession
	 */
	function execute(IRequest $Request, $armoredPublicKey = null) {
		return parent::execute($Request, $armoredPublicKey);
	}

}
